import { zlRequest } from "../index";

export const main = () => {
  return zlRequest.get({
    url: "/system/dict/data/type/getDictDatas",
    showLoading: false
  });
};

export const getAddress = () => {
  return zlRequest.get({
    url: "/area/parkArea/parkAreaTree",
    showLoading: false
  });
};


export const getHomeHotData = (type: "1" | "2" | "3" | "4") => {
  return zlRequest.post({
    url: `/keyword/search/list?pageNum=${1}&pageSize=${10}`,
    data: { searchType: type },
    showLoading: false
  })
}

// 轮播图
export const getBannerData = () => {
  return zlRequest.get({ url: `/system/banner/getBannerList?type=1` })
}

// pdf
export const getpdf = (data) => {
  return zlRequest.post({ url: `/article/article_policy/wordToPdf`,data })
}
